home *** CD-ROM | disk | FTP | other *** search
- Path: news.agsm.ucla.edu!usenet
- From: ivo.welch@agsm.ucla.edu (Ivo Welch)
- Newsgroups: comp.sources.wanted,comp.lang.c
- Subject: Re: Seek C function to format dollars -- and more
- Date: 9 Feb 1996 21:54:07 GMT
- Organization: The Anderson School at UCLA
- Message-ID: <4fgfpv$p2d@risc.agsm.ucla.edu>
- References: <4feker$5bd@nuke.csu.net>
- NNTP-Posting-Host: next.agsm.ucla.edu
- In-Reply-To: <4feker$5bd@nuke.csu.net>
- X-Newsreader: NewsFlash [$Revision: 2.230 $] NF-U-00051
-
-
- >An improved version of printf with a %$
- >option would be especially terrific.
-
- I also have some need to get more functionality from printf than what I can
- decipher from the C manual. In particular, I would like a %f option that
- restricts the number of decimals after the period to a minimum. So, if I
- have
- Float Want-to-print
- 3.1400 3.14
- 3.1415 3.1415
- 3.0000 3
- Is there a way to add this functionality?
-
- Please respond to me---I will post a summary. (Our news server is flaky
- enough to make reading newgroup a random affair.)
-
- /ivo welch
- ---
- Ivo Welch ivo.welch@anderson.ucla.edu
- Assoc Prof of Finance Anderson GSM at UCLA
- 110 Westwood Plaza, Box 951481, LA CA 90095-1481
-
- --
- Ivo Welch ivo.welch@anderson.ucla.edu
- Assoc Prof of Finance Anderson GSM at UCLA
- 110 Westwood Plaza, Box 951481, LA CA 90095-1481
-
-